home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / editor / jmedia20.zip / JMEDIA.DOC < prev    next >
Text File  |  1996-11-01  |  14KB  |  327 lines

  1.                ┌─────────────────────────────────────────────┐
  2.                │               JMedia v2.0                   ├─┐
  3.                │                (FREEWARE)                   │ │
  4.                │                                             │ │
  5.                │ (c) Copyright 1996 By Nick Onoufriou        │ │
  6.                │            All Rights Reserved              │ │
  7.                │                                             │ │
  8.                │                (USER DOCS)                  │ │
  9.                └─┬───────────────────────────────────────────┘ │
  10.                  └─────────────────────────────────────────────┘
  11.  
  12.  
  13.  
  14. ┌─────────────┐
  15. │INTRODUCTION ├───────────────────────────────────────────────────────
  16. └─────────────┘
  17.  
  18.   JMedia is a multipurpose graphics program. It was originally
  19.   designed for easy editing of BBS menu screens using the RIPScrip
  20.   protocol. It has however been expanded to do many more things. You
  21.   can use JMedia to create demos, magazines, tutorials, and simple
  22.   programs. JMedia is a complete authoring system that allows you to
  23.   create actual executables that can be distributed royalty free.
  24.  
  25.   JMedia comes complete with an integrated development environment or
  26.   IDE. It provides everything you need to write, edit, compile, run,
  27.   and debug your applications.
  28.  
  29.   If you are a sysop and wish to use this program only for creating
  30.   RIP BBS menus than please read SYSOP.DOC, the information provided
  31.   from this point on deals only with creating JMedia applications.
  32.  
  33.  
  34. ┌─────────────┐
  35. │REQUIREMENTS ├───────────────────────────────────────────────────────
  36. └─────────────┘
  37.  
  38.   286 computer or better
  39.   EGA/VGA/SVGA display card
  40.  
  41. ┌─────────┐
  42. │FREEWARE ├───────────────────────────────────────────────────────────
  43. └─────────┘
  44.  
  45.      This program is FREE, use it for what ever purpose you wish.
  46.      Cash donations are welcomed but not required, please don't send
  47.      checks.
  48.  
  49.      For any amounts of $10 (American/Canadian) or more I will send you
  50.      a disk containing JDraw Pro and some of my other Ripscrip utilities.
  51.  
  52.      If you have any questions, comments, or suggestions
  53.      you may be able to reach me by:
  54.  
  55.      Voice (416) 757-7944
  56.      Internet: nick.onoufriou@westonia.com (until Jan 1/97)
  57.  
  58.      Surface Mail  - Nick Onoufriou
  59.                      1375 Midland Ave. #909
  60.                      Scarborough, Ontario
  61.                      CANADA  M1P 3B7
  62.  
  63.  
  64. ┌────────────────┐
  65. │GETTING STARTED ├────────────────────────────────────────────────────
  66. └────────────────┘
  67.  
  68.   When you first run JMedia you will notice a file displayer. This is
  69.   the main menu where you select the files you wish to view, run,
  70.   edit, or build. A help menu is available by pressing F1.  You can
  71.   configure some of the JMedia's default settings by selecting F2.
  72.   Some of the configuration items may not seem clear right now but
  73.   will have more meaning as you become more familiar with the program.
  74.  
  75.   The file type field is for setting the type of files to list in the
  76.   file display. The default setting is "J  ;RIP;PRJ" which lists all
  77.   the files we will be dealing with. This is simply the extension of
  78.   the files separated by a semicolon. Please note that the spaces
  79.   following the "J" are required otherwise any file with extension
  80.   containing the letter "J" will be listed.
  81.  
  82.   The icon search path field tells JMedia where icon files are
  83.   located, you can use multiple paths by separating each with a
  84.   semicolon. The icon export path is where files will be written to.
  85.   The font path is where all the files with the extension CHR are
  86.   located.
  87.  
  88.   The text window field is for setting the status of the text window
  89.   command and all the commands that relate to it. You cannot
  90.   overwrite this option using JMedia's command language, it is best
  91.   to leave to "Y".
  92.  
  93.   The ansi field is used for setting ansi in a text window, you can
  94.   overwrite this option using JMedia's ansi command as long as the
  95.   text window option is set "Y".
  96.  
  97.   The disk write field is used to indicate if icons can be written to
  98.   disk. The Line length field is the number of columns per line that
  99.   will be used when creating RIP files.
  100.  
  101. ┌────────────────┐
  102. │ABOUT THE FILES ├────────────────────────────────────────────────────
  103. └────────────────┘
  104.  
  105.   There are three basic types of files you should be aware, these
  106.   include files with the extension J, RIP, and PRJ. "J" files contain
  107.   high level "english like" scripting commands. "RIP" files are
  108.   compiled "J" files, which means the files contain the same basic
  109.   information but are much more compact and not very readable. Some
  110.   JMedia commands also expand into a series of RIP commands.
  111.  
  112.   Files with the "PRJ" extension are project files which contain names
  113.   of other files. The files listed in the "PRJ" are assembled together
  114.   to create a free standing executable file.
  115.  
  116.  
  117. ┌──────────────┐
  118. │FIRST PROGRAM ├──────────────────────────────────────────────────────
  119. └──────────────┘
  120.  
  121.   The entire JMedia command language along with description is listed
  122.   in the COMMANDS.DOC file. The best way to demonstrate JMedia is to
  123.   start with a simple "Hello World" program.
  124.  
  125.   Lets start by creating a new file, call it HELLO.J
  126.  
  127.   To do this type ALT-N from the main menu, you will be prompted to
  128.   enter a filename. Type "HELLO.J" and press enter. If you did
  129.   everything correctly you will notice that you are in a "Text Editor"
  130.   environment. Type in the following program.
  131.  
  132.     Color Red
  133.     TextXY 300 180 Hello World!!!
  134.  
  135.   Select ALT-S to save your program and then select ALT-R to execute
  136.   it. If you have typed in everything correctly you should see a red
  137.   "Hello World!!!" message in the middle of the screen. Press the
  138.   "ESC" key to return to the editor.
  139.  
  140.   If you have made a mistake JMedia will indicate on the status bar
  141.   which line the error occurred and also give you some description
  142.   on what could have been the cause of the error.
  143.  
  144.   Lets now return to the main menu, if you look carefully you will
  145.   notice that the HELLO.J program you have created is not displayed
  146.   in the file listing. You must manually update the contents of the
  147.   display by selecting ALT-R. Once you have done that the file should
  148.   now be visible.
  149.  
  150. ┌────────────────────────────┐
  151. │CREATING AN EXECUTABLE FILE ├────────────────────────────────────────
  152. └────────────────────────────┘
  153.  
  154.   One of the most important aspects of JMedia is its a ability to
  155.   create executable files which can run without JMedia. This only
  156.   takes a few simple steps.
  157.  
  158.   From the main menu select the HELLO.J file you previously created
  159.   and press the "Enter" key and you're back in the editor once again.
  160.  
  161.   This time instead of executing the program you must compile it. You
  162.   do this by the selecting ALT-C. The word "Success!" should be
  163.   displayed on the status bar when the program is finished compiling.
  164.   What should have happen is the creation of another file called
  165.   HELLO.RIP. Select the "ESC" key to return to the main menu.
  166.  
  167.   Once again select ALT-R to update the file display. Again you
  168.   should see a new file called HELLO.RIP.
  169.  
  170.   A third file must now be created called a project file. Select
  171.   ALT-N to create a new file and enter HELLO.PRJ for the filename.
  172.   From the editor type the following.
  173.  
  174.    HELLO.RIP
  175.    F8X8.FNT
  176.  
  177.   Save the file and exit back to the main menu. Type ALT-R to update
  178.   the file display. Now select HELLO.PRJ and press the "Enter" key.
  179.   You will see a new menu titled "BUILDING APPLICATION" and with the
  180.   filename as "HELLO.EXE" with the status indicating "Success." If
  181.   does not indicate "Success" than an additional error message will
  182.   indicate what has gone wrong. Most of the time it will be caused
  183.   due to incorrect spelling of filenames in the "PRJ" file.
  184.  
  185.   Exit JMedia now and look for the HELLO.EXE program, it should be
  186.   in the current directory. Now type HELLO as though you were
  187.   executing any other DOS program. Amazing, you have coded, compiled,
  188.   and created an EXE file in just minutes.
  189.  
  190.  
  191. NOTE: The shareware version of JMedia will create EXE files that contain
  192.       a shareware notice and a 25 second delay. The registered version
  193.       does not create EXE files with shareware notices or delays.
  194.  
  195.  
  196. ┌─────────────────────────┐
  197. │USING ADVANCE TECHNIQUES ├───────────────────────────────────────────
  198. └─────────────────────────┘
  199.  
  200.   In the last example we've demonstrated all the steps required to
  201.   create a program from start to finish. Even though the resulting
  202.   program was nothing impressive it still contained of all the basic
  203.   steps for creating applications that are more complex.
  204.  
  205.   The JMedia command language consists of number of commands and a
  206.   couple of macros, these are all listed in the commands.doc.  By
  207.   using these commands you can construct programs that are very
  208.   powerful. Unlike traditional authoring systems JMedia allows you
  209.   have complete control over the look and feel of every application
  210.   you create.
  211.  
  212.   Before creating applications with JMedia you must take become
  213.   familiar with how input/output and files are handled. JMedia uses
  214.   a simple technique known as stacking. A series of commands or
  215.   simply one command is stored in a buffer and then executed last in
  216.   first out (LIFO) order. This means the last command that is stacked
  217.   will be the first one executed. Each time a stacked command is
  218.   executed it is removed from the stack.
  219.  
  220.   Using the same stacking technique you can stack files as well.
  221.   Files must contain periods since this is the only way to
  222.   distinguish files from commands. When a command is processed from
  223.   the stack it simply executed, but if it is a file it must be dealt
  224.   differently.
  225.  
  226.   Commands and files can be stacked using several methods. One way
  227.   is to use the Push command:
  228.  
  229.      Push Play abc^Mscreen2.rip^M
  230.  
  231.   What this line has done is put "Play abc" and "screen2.rip" on the
  232.   stack. When Jmedia finished processing the current file it will look
  233.   on the stack and see what it finds. In this case it will first find
  234.   the command "Play abc" and it will proceed to execute it. The second
  235.   command that it will find is "screen2.rip" and since this is a file
  236.   it will begin processing (displaying) this one as well. Notice the
  237.   "^M" this acts as a command separator and command terminator.
  238.  
  239.  
  240.   Another way to stack commands is by using the Button command.
  241.  
  242.     Button 10 10 0 0  a <>Option 1<>Play abc^M
  243.     Button 100 10 0 0 b <>Option 2<>screen2.rip^M
  244.  
  245.   This will draw two buttons and wait for the user to select one by
  246.   either using the keyboard (pressing "a" or "b" on the keyboard) or
  247.   with a mouse.
  248.  
  249.   If option 1 is selected the command "Play abc" will be stacked" and
  250.   if option 2 is selected then the file "screen2.rip" will be stacked.
  251.  
  252.   The AddHotKey and Mouse commands can also be used to stack commands
  253.   similar to the Button command.
  254.  
  255.   It is important to note that only extended commands can be stacked.
  256.   All other commands must be executed by stacking a file containing
  257.   those commands.
  258.  
  259.  
  260. ┌────────────────────────────┐
  261. │HOW EXECUTABLES ARE CREATED ├────────────────────────────────────────
  262. └────────────────────────────┘
  263.  
  264.   With the example program all the steps were listed on how to create
  265.   the EXE file but no information was given on how an EXE file really
  266.   function.
  267.  
  268.   When you build an application by selecting a file with a "PRJ"
  269.   extension JMedia looks for a file called "JMRUN.EXE", this file
  270.   should be in the current directory or in your DOS path.  Once the
  271.   file is found JMedia starts searching for all the other files listed
  272.   in the project file. If a file listed is not found JMedia will
  273.   indicate with an error message.
  274.  
  275.   If all the files are found JMedia begins to create an EXE file by
  276.   assembling the various files together.  Once an EXE file is created
  277.   no other files are required. All reference to filenames will be used
  278.   as a reference to locate the actual information inside the EXE.
  279.  
  280.   When creating a project file you must keep track of all the files your
  281.   application will be using. This includes RIP files, fonts (CHR and
  282.   FNT), icon (ICN), PCX, and any text files that are used by the
  283.   picklist and browser commands.
  284.  
  285.   The first filename in the PRJ file must that of a RIP file. This is
  286.   the startup file that will get things going. All other files can be
  287.   placed in what ever order you wish. It is however a good a idea to
  288.   keep files that will be accessed the most close together.
  289.  
  290.   One file that must always be included is the F8X8.FNT, this is the
  291.   font used for the initial text window that is created automatically
  292.   by JMedia. If you create text windows with other fonts you must
  293.   include those fonts as well.
  294.  
  295.   When searching for filenames listed in the project file JMedia will
  296.   look in the current directory first. If it does not find the file
  297.   there it will look in the directory where JMedia has been executed.
  298.   If the file is still not found an error message will appear. To
  299.   avoid the searches you can specify the entire path when listing names
  300.   in the project file.
  301.  
  302.   When you have created an EXE file it best run it and try out every
  303.   option, this is the only way to be 100% sure that all the required
  304.   files have been included in EXE. If a file was accidentally left
  305.   out your application will halt with an error message indicating
  306.   which file is missing.
  307.  
  308.  
  309. ┌───────────────────────┐
  310. │DEMO APPLICATION FILES ├────────────────────────────────────────────
  311. └───────────────────────┘
  312.  
  313.   Explaining how to use JMedia by just words alone can seem very
  314.   complex, some of the topics covered here are actually very simple
  315.   once you study some of the demo programs and start creating your own
  316.   applications. Most of the demos contain many files and therefore
  317.   have been compressed into self extracting executables.
  318.  
  319.   It is best to create a directory for each demo and copy the file
  320.   there. To uncompress it simply run the program, everything will
  321.   self extract. Each demo application contains all the files required
  322.   to build an executable, just select the PRJ file from JMedia and
  323.   application will be created.
  324.  
  325.  
  326.  
  327.